%iconBackground{
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    width: 40px;
    height: 40px;
    min-width: 40px;

    &-audio {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-audio-m.svg");
    }

    &-code {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-code-m.svg");
    }

    &-doc {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-doc-m.svg");
    }

    &-file {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-file-m.svg");
    }

    &-font {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-font-m.svg");
    }

    &-nor {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-nor-m.svg");
    }

    &-pdf {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-pdf-m.svg");
    }

    &-ppt {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-ppt-m.svg");
    }

    &-ps {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-ps-m.svg");
    }

    &-xls {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-xls-m.svg");
    }

    &-zip {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-zip-m.svg");
    }

    &-image {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-image.svg");
        background-size: 30px 30px;
    }

    &-conf {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-conf.svg");
        background-size: 26px 26px;
    }
    &-exe {
        @extend %iconBackground;
        background-image: url("../img/doctype/icon-exe.svg");
        background-size: 28px 28px;
    }

    &-sort {
        @extend %iconBackground;
        min-width: 16px;
        width: 16px;
        height: 16px;
        font-size: 0;
        background: url("../img/icon-sort.svg") center;
        background-size: 100% 100%;

        &-asc {
            transform: rotate(180deg);
        }

        &-none {
            display: none;
        }
    }
    &-arrow-solid{
        width: 0;
        height: 0;
        min-width: auto;
        border-top: 6px solid transparent;
        border-left: 6px solid currentColor;
        border-bottom: 6px solid transparent;
    }
}

.action {
    &-item {
        display: inline-block;
        height: 34px;
        line-height: 34px;
        padding: 0 20px;
        border: 1px solid #515a59;
        border-radius: 2px;
        cursor: pointer;
    }
    &-ground{
        $groupColor: #6aabff;
        font-size: 0;
        color: $groupColor;
        border: 1px solid currentColor;
        .action{
            &-text{
                display: inline-block;
                vertical-align: middle;
                font-size: 15px;
                padding: 2px 10px;
                color: $groupColor;
                &:not(:last-child){
                    border-right: 1px solid $groupColor;
                }
                &:hover{
                    text-decoration: none;
                    background: rgba(106, 171, 255, .2);
                }
            }
            &-more{
                position: relative;
                display: inline-block;
                vertical-align: middle;
                padding: 2px 10px;
                color: inherit;
                font-size: 15px;
                .icon-arrow-solid{
                    vertical-align: initial;
                }
                &:hover{
                    .menu-dropdown{
                        display: block;
                    }
                }
            }
        }
    }
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    padding: 6px 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, .2);
    z-index: 10;

    &-item {
        height: 36px;
        line-height: 36px;
        padding: 0 16px;

        &:hover {
            background: #eaeaea;
        }
    }

    &-label {
        display: block;
        width: inherit;
        height: inherit;
        line-height: inherit;

        &:hover {
            text-decoration: none;
        }
    }
}

.wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: auto;
    box-shadow: 0 0 15px #515a59;
    background: #fff;
}

.header {
    border-bottom: 1px solid rgba(81, 90, 89, .2);
}

.main {
    flex: 1;
    overflow: hidden;
}

.container {
    height: 100%;
    max-width: 1400px;
    margin: auto;

    //工具栏
    .toolbar {
        position: relative;
        display: flex;
        align-items: center;
        height: 68px;
        padding: 0 32px;

        .tab-item {
            padding:10px;

            &.actived {
                a {
                    &:hover {
                        text-decoration: none;
                    }
                    
                    color: #bb5d0d;
                    border-bottom: solid 2px #bb5d0d;
                }
            }
        }

        .action {
            flex: 1;
        }
    }
}








//头部用户
.head-user {
    position: absolute;
    right: 32px;
    padding: 4px 0;

    .toolbar{

        &-label {
            font-size: 0;
            padding: 12px 10px 12px 8px;
            cursor: pointer;
        }
        &-txt{
            display: inline-block;
            vertical-align: middle;
            font-size: 15px;
            padding: 0 6px 0 0;
        }
    }

    .icon-arrow-solid {
        position: relative;
        top: 1px;
        min-width: auto;
        transition: transform .24s;
    }

    &:hover {
        .toolbar-label {
            background: #dedede;
            border-radius: 2px;
        }

        .menu-dropdown {
            display: block;
        }

        .icon-arrow-solid {
            transform: rotate(90deg);
        }
    }

}


//面包屑
.crumb {
    &-list {
        display: flex;
        height: 48px;
        line-height: 48px;
        padding: 0 32px;
    }

    &-item {
        font-size: 0;
        color: rgba(0, 0, 0, 0.7);

        &:not(:first-child) {
            &:before {
                content: '';
                display: inline-block;
                vertical-align: middle;
                width: 14px;
                height: 14px;
                padding: 0 4px;
                //background: url("../img/doctype/icon-arrow.svg") center no-repeat;
                //background-size: 100% 100%;

                background-color: currentColor;
                -webkit-mask: url(../img/doctype/icon-arrow.svg) no-repeat 50% 50% / 100% 100%;
                mask: url(../img/doctype/icon-arrow.svg) no-repeat 50% 50%;
                transform: rotate(-90deg);

            }
        }

        &-text {
            display: inline-block;
            vertical-align: middle;
            font-size: 15px;
            color: currentColor;
        }

        &:last-child {
            .crumb-item-text {
                font-weight: 700;
                color: #000;
                cursor: default;

                &:hover {
                    text-decoration: none;
                }
            }
        }
    }
}

//文件列表
.list-files {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: auto;
}